﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ServiceDetails.aspx.cs" Inherits="AB.ServiceDirectory.Design.Services.ServiceDetails" %>

<%@ Register TagPrefix="wuc" TagName="ContactLookupPopup" Src="~/WebUserControls/Lookup/ContactLookupUserControl.ascx" %>
<%@ Register TagPrefix="wuc" TagName="DialogBox" Src="~/WebUserControls/DialogBox.ascx" %>
<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <%--<link href="../style/jquery.ui/calendar/css/datepicker.css" rel="stylesheet" type="text/css" />
    <script src="../js/calendar/datepicker.js" type="text/javascript"></script>
    <script src="../js/calendar/eye.js" type="text/javascript"></script>
    <script src="../js/calendar/layout.js" type="text/javascript"></script>--%>
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });

        function set_service_extendable() {
            if (!$('#CheckBoxServiceExtendable').attr('checked')) {
                $('input[id=TextBoxExtendableYears]').attr('disabled', 'disabled').addClass('st-disable');
                $('input[id=TextBoxExtendableMonths]').attr('disabled', 'disabled').addClass('st-disable');
            } else {
                $('input[id=TextBoxExtendableYears]').removeAttr('disable').removeClass('st-disable');
                $('input[id=TextBoxExtendableMonths]').removeAttr('disabled').removeClass('st-disable');
            }
        }

        function set_time_limited() {
            if (!$('#CheckBoxTimeLimited').attr('checked')) {
                $('input[id=TextBoxLimitedYears]').attr('disabled', 'disabled').addClass('st-disable');
                $('input[id=TextBoxLimitedMonths]').attr('disabled', 'disabled').addClass('st-disable');
            } else {
                $('input[id=TextBoxLimitedYears]').removeAttr('disable').removeClass('st-disable');
                $('input[id=TextBoxLimitedMonths]').removeAttr('disabled').removeClass('st-disable');
            }
        }

        function validate_service_date() {
            var extMonths = isNaN($('#TextBoxExtendableMonths').val()) ? $('#TextBoxExtendableMonths').val() : 0;
            var extYears = isNaN($('#TextBoxExtendableYears').val()) ? $('#TextBoxExtendableYears').val() : 0;
            var startDate = Date.parse($('.startDate').val());
            var endDate = Date.parse($('.endDate').val());
            endDate.addYears(extYears);
            endDate.addMonths(extMonths);
            var currentDate = new Date();

            if (startDate <= currentDate <= endDate) {
                $('input[class=service_active]').attr('checked', 'checked');
                return;
            }
            
             $('input[class=service_active]').removeAttr('checked');
        }
    </script>
    <link href="../style/AnhPopup.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="ContentTitle" runat="server">
    <h2>
        Service Details</h2>
</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <asp:HiddenField ID="HiddenFieldServiceId" runat="server" />
    <asp:HiddenField ID="HiddenFieldServiceName" runat="server" />
    <div class="grid740 simplebox relative">
        <wuc:DialogBox ID="DialogBox" runat="server" />
        <div id="tabs">
            <ul>
                <li><asp:HyperLink ID="LinkDetails01" NavigateUrl="#DetailsPanel01" runat="server">Details 1</asp:HyperLink></li>
                <li><asp:HyperLink ID="LinkDetails02" NavigateUrl="#DetailsPanel02" runat="server">Details 2</asp:HyperLink></li>
                <li><asp:HyperLink ID="LinkDetails03" NavigateUrl="#DetailsPanel03" runat="server">Details 3</asp:HyperLink></li>
                <li><asp:HyperLink ID="LinkDetails04" NavigateUrl="#DetailsPanel04" runat="server" Visible="False">Organisations</asp:HyperLink></li>
                <li><asp:HyperLink ID="LinkDetails05" NavigateUrl="#DetailsPanel05" runat="server" Visible="False">Funding</asp:HyperLink></li>
                <li><asp:HyperLink ID="LinkDetails06" NavigateUrl="#DetailsPanel06" runat="server" Visible="False">Contract</asp:HyperLink></li>
            </ul>
            <span class="top-right-cornor">
                <asp:Button CssClass="st-button" ID="ButtonInactive" runat="server" Text="In-active"
                    CommandName="active" CausesValidation="False" OnCommand="ButtonInactive_Command"
                    Visible="False" />
                <asp:Button CssClass="st-button" ID="ButtonSave" runat="server" Text="Save" CommandName="new"
                    OnCommand="ButtonSave_Command" />
                <asp:Button CssClass="st-button" ID="ButtonBack" runat="server" Text="Back" PostBackUrl="~/Services/ServiceList.aspx"
                    CausesValidation="False" />
            </span>
            <!--DETAILS PANEL 01-->
            <asp:Panel ID="DetailsPanel01" ClientIDMode="Static" runat="server">
                <!-- LINE 1: Service Name & Service Active -->
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelServiceName" runat="server" Text="Service Name" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TextBoxServiceName">
                            <asp:RequiredFieldValidator ID="RequiredServiceName" runat="server" ErrorMessage="*"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxServiceName" />
                        </asp:Label><asp:TextBox ID="TextBoxServiceName" CssClass="st-forminput" runat="server"
                            Width="210px"></asp:TextBox><asp:Label ID="LabelCheckName" runat="server" 
                            ForeColor="#990033"></asp:Label></div><div class="half last">
                        <asp:Label ID="LabelServiceActive" runat="server" Text="Service Active" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxActive" />
                        <asp:CheckBox ID="CheckBoxActive" 
                            runat="server" Enabled="false" CssClass="service_active" /></div>
                    <div class="clear">
                    </div>
                </div>
                <!-- LINE 2: Short Description & Full Description -->
                <div class="st-form-line-noleft">
                    <div class="half">
                        <div class="half">
                            <asp:Label ID="LabelShortDescription" runat="server" Text="Service Short Description"
                                CssClass="st-labeltext level1 required" AssociatedControlID="TextBoxShortDescription">
                                <asp:RequiredFieldValidator ID="RequiredShortDescription" runat="server" ErrorMessage="*"
                                    Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxShortDescription" />
                            </asp:Label><asp:TextBox ID="TextBoxShortDescription" CssClass="st-forminput" runat="server"
                                TextMode="MultiLine" Rows="4" Width="210px"></asp:TextBox></div></div><div class="half last">
                        <asp:Label ID="Label3" runat="server" Text="Service Full Description" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxFullDescription">
                        </asp:Label><asp:TextBox ID="TextBoxFullDescription" CssClass="st-forminput" runat="server"
                            TextMode="MultiLine" Rows="4" Width="210px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <!-- LINE 3: Sub Type & Dept Code -->
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelSubType" runat="server" Text="Sub Type" CssClass="st-labeltext level1"
                            AssociatedControlID="DropDownListSubType" />
                        <asp:DropDownList 
                            ID="DropDownListSubType" runat="server" CssClass="st-forminput"
                            Width="210px" AutoPostBack="True" 
                            onselectedindexchanged="DropDownListSubType_SelectedIndexChanged"></asp:DropDownList>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelDeptCode" runat="server" Text="Dept Code" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TextBoxDeptCode">
                            <asp:RequiredFieldValidator ID="RequiredDeptCode" runat="server" ErrorMessage="*"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxDeptCode" />
                        </asp:Label><asp:TextBox ID="TextBoxDeptCode" CssClass="st-forminput" runat="server"
                            Width="210px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <!-- LINE 4: Lead Contact & Service Type -->
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelLeadContact" runat="server" Text="Lead Contact" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TextBoxLeadContact"></asp:Label><asp:TextBox ID="TextBoxLeadContact"
                                CssClass="st-forminput st-disable" runat="server" Width="150px" ReadOnly="True"></asp:TextBox><asp:LinkButton
                                    ID="ButtonContactLookup" runat="server" CssClass="hg-blue" Text="Lookup" CausesValidation="False"
                                    CommandName="contact" OnCommand="ButtonLookup_Command" />
                        <asp:HiddenField ID="HiddenFieldContactId" runat="server" />
                        <asp:RequiredFieldValidator ID="RequiredLeadContact" runat="server" ErrorMessage="*"
                            Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxLeadContact" />
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelServiceType" runat="server" Text="Service Type" CssClass="st-labeltext level1 required"
                            AssociatedControlID="DropDownListServiceType">
                            <asp:RequiredFieldValidator ID="RequiredServiceType" runat="server" ErrorMessage="*"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="DropDownListServiceType" />
                        </asp:Label><asp:DropDownList ID="DropDownListServiceType" runat="server" CssClass="st-forminput"
                            Width="210px">
                        </asp:DropDownList>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <!-- LINE 5: Client Description & Service Description Delivery -->
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelClientDescription" runat="server" Text="Client Description" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxClientDescription">
                        </asp:Label><asp:TextBox ID="TextBoxClientDescription" CssClass="st-forminput" runat="server"
                            TextMode="MultiLine" Rows="4" Width="210px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelServiceDescriptionDelivery" runat="server" Text="Service Description Delivery"
                            CssClass="st-labeltext level1" AssociatedControlID="TextBoxDescriptionDelivery">
                        </asp:Label><asp:TextBox ID="TextBoxDescriptionDelivery" CssClass="st-forminput"
                            runat="server" TextMode="MultiLine" Rows="4" Width="210px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <!-- LINE 6: Service Attendance & Service Contract Code -->
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelServiceAttendance" runat="server" Text="Service Attendance" CssClass="st-labeltext level1"
                            AssociatedControlID="DropDownListServiceAttendance" /><asp:DropDownList ID="DropDownListServiceAttendance"
                                runat="server" CssClass="st-forminput" Width="210px">
                            </asp:DropDownList>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelContractCode" runat="server" Text="Service Contract Code" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxContractCode">
                        </asp:Label><asp:TextBox ID="TextBoxContractCode" CssClass="st-forminput" runat="server"
                            Width="210px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <!-- LINE 7: Service Start Expected & Service Contract Value -->
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelServiceStartExpected" runat="server" Text="Service Start Expected"
                            CssClass="st-labeltext level1" AssociatedControlID="TextBoxStartExpected">
                        </asp:Label><asp:TextBox ID="TextBoxStartExpected" CssClass="inputDate datepicker-input datepicker startExpected" onblur="validate_service_date()" 
                            runat="server" Width="210px" Text=""></asp:TextBox><asp:CompareValidator ID="CompareValidatorStartExpected"
                                runat="server" ErrorMessage="Date format must be correct" ControlToValidate="TextBoxStartExpected"
                                Display="Dynamic" Operator="DataTypeCheck" SetFocusOnError="True" Type="Date"
                                ForeColor="#990033"></asp:CompareValidator></div><div class="half last">
                        <asp:Label ID="LabelContractValue" runat="server" Text="Service Contract Value" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxContractValue">
                        </asp:Label><asp:TextBox ID="TextBoxContractValue" CssClass="st-forminput" runat="server"
                            Width="210px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <!-- LINE 8: Service Start Date & Contract Staged Payment -->
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelStartDate" runat="server" Text="Service Start Date" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxStartDate">
                        </asp:Label><asp:TextBox ID="TextBoxStartDate" onblur="validate_service_date()" CssClass="inputDate datepicker-input datepicker startDate"
                            runat="server" Width="210px" Text=""></asp:TextBox><asp:CompareValidator 
                            ID="CompareValidatorStartExpected0" runat="server" 
                            ControlToValidate="TextBoxStartDate" Display="Dynamic" 
                            ErrorMessage="Date format must be correct" ForeColor="#990033" 
                            Operator="DataTypeCheck" SetFocusOnError="True" Type="Date"></asp:CompareValidator></div><div class="half last">
                        <asp:Label ID="LabelContractStagedPayment" runat="server" Text="Contract Staged Payment"
                            CssClass="st-labeltext level1" AssociatedControlID="CheckBoxStagedPayment" />
                        <asp:CheckBox ID="CheckBoxStagedPayment" runat="server" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <!-- LINE 9: Service End Date & Referral Process/Method -->
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelEndDate" runat="server" Text="Service End Date" CssClass="st-labeltext level1" onblur="validate_service_date()"
                            AssociatedControlID="TextBoxEndDate">
                        </asp:Label><asp:TextBox ID="TextBoxEndDate" CssClass="inputDate datepicker-input endDate" 
                            runat="server" Width="210px" Text=""></asp:TextBox><asp:CompareValidator 
                            ID="CompareValidatorStartExpected1" runat="server" 
                            ControlToValidate="TextBoxEndDate" Display="Dynamic" 
                            ErrorMessage="Date format must be correct" ForeColor="#990033" 
                            Operator="DataTypeCheck" SetFocusOnError="True" Type="Date"></asp:CompareValidator></div><div class="half last">
                        <asp:Label ID="LabelReferralProcess" runat="server" Text="Referral Process/Method"
                            CssClass="st-labeltext level1" AssociatedControlID="DropDownListReferralProcess" />
                        <asp:DropDownList ID="DropDownListReferralProcess" runat="server" CssClass="st-forminput"
                            Width="210px">
                        </asp:DropDownList>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <!-- LINE 10: Service Extendable  & Service Limited Time -->
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelServiceExtendable" runat="server" Text="Service Extendable" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxServiceExtendable" />
                        <asp:CheckBox ID="CheckBoxServiceExtendable" runat="server" onclick="set_service_extendable();"
                            ClientIDMode="Static" /><div class="clear">
                            </div>
                        <asp:Panel ID="PanelServiceExtendable" runat="server">
                            <asp:Label runat="server" ID="LabelSpace01" CssClass="level1 st-labeltext">&nbsp;</asp:Label><asp:TextBox
                                ID="TextBoxExtendableYears" CssClass='st-forminput' Width="30px" runat="server"
                                ClientIDMode="Static" /><span style="color: black;">Years</span> <asp:TextBox ID="TextBoxExtendableMonths" CssClass='st-forminput ' Width="30px" runat="server"
                                ClientIDMode="Static" /><span style="color: black;">Months</span> </asp:Panel></div><div class="half last">
                        <asp:Label ID="LabelServiceTimeLimited" runat="server" Text="Service Time Limited"
                            CssClass="st-labeltext level1" AssociatedControlID="CheckBoxTimeLimited" />
                        <asp:CheckBox ID="CheckBoxTimeLimited" runat="server" onclick="set_time_limited();"
                            ClientIDMode="Static" /><div class="clear">
                            </div>
                        <asp:Panel ID="PanelTimeLimited" runat="server">
                            <asp:Label runat="server" ID="LabelSpace02" CssClass="level1 st-labeltext">&nbsp;</asp:Label><asp:TextBox
                                ID="TextBoxLimitedYears" CssClass="st-forminput" Width="30px" runat="server"
                                ClientIDMode="Static" /><span style="color: black;">Years</span> <asp:TextBox ID="TextBoxLimitedMonths" CssClass="st-forminput" Width="30px" runat="server"
                                ClientIDMode="Static" /><span style="color: black;">Months</span> </asp:Panel></div><div class="clear">
                    </div>
                </div>
                <div class="clear">
                </div>
            </asp:Panel>
            <!--DETAILS PANEL 02-->
            <asp:Panel ID="DetailsPanel02" ClientIDMode="Static" runat="server">
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelBenefits" runat="server" Text="Service Benefits Criterion" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListBenefits"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListBenefits" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelDisability" runat="server" Text="Service Disability Criterion"
                            CssClass="st-labeltext level1" AssociatedControlID="CheckBoxDisability"></asp:Label><div
                                class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxDisability" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelBarriers" runat="server" Text="Service Barriers Criterion" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListBarriers"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListBarriers" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelCircumstances" runat="server" Text="Service Personal Circumstances Criterion"
                            CssClass="st-labeltext level1" AssociatedControlID="CheckBoxListCircumstances"></asp:Label><div
                                class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListCircumstances" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelEthnicity" runat="server" Text="Service Ethnicity Criterion"
                            CssClass="st-labeltext level1" AssociatedControlID="CheckBoxEthnicity"></asp:Label><div
                                class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxEthnicity" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelParticipation" runat="server" Text="Other Service Participation"
                            CssClass="st-labeltext level1" AssociatedControlID="CheckBoxListParticipation"></asp:Label><div
                                class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListParticipation" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
            </asp:Panel>
            <!--DETAILS PANEL 03-->
            <asp:Panel ID="DetailsPanel03" ClientIDMode="Static" runat="server">
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelClientSupportProcess" runat="server" Text="Client Support Process"
                            CssClass="st-labeltext level1" AssociatedControlID="CheckBoxListClientSupportProcess"></asp:Label><div
                                class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListClientSupportProcess" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelClientOutcome" runat="server" Text="Client Outcome" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListClientOutcome"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListClientOutcome" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelIntervention" runat="server" Text="Intervention" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListIntervention"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListIntervention" runat="server" DataTextField="InterventionName"
                                    DataValueField="InterventionId">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelTargetClient" runat="server" Text="Target Client" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxTargetClient"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxTargetClient" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelClientJourney" runat="server" Text="Client Journey" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListClientJourney"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListClientJourney" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelAccredotations" runat="server" Text="Accreditations" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListAccreditations"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListAccreditations" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelOtherServices" runat="server" Text="Other Services" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListOtherServices"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListOtherServices" runat="server" DataTextField="ServiceName"
                                    DataValueField="ServiceId">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelReferralSources" runat="server" Text="Referral Sources" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListReferralSources"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListReferralSources" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelSupportCentres" runat="server" Text="Support Centres" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListSupportCentres"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListSupportCentres" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelProgram" runat="server" Text="Program" CssClass="st-labeltext level1"
                            AssociatedControlID="DropDownListProgram"></asp:Label><asp:DropDownList ID="DropDownListProgram"
                                runat="server" CssClass="st-labeltext" Width="210px" DataTextField="ProgramName"
                                DataValueField="ProgramId">
                            </asp:DropDownList>
                    </div>
                    <div class="clear">
                    </div>
                </div>
            </asp:Panel>
            <!--DETAILS PANEL 04-->
            <asp:Panel ID="DetailsPanel04" ClientIDMode="Static" runat="server" Visible="false">
            </asp:Panel>
            <!--DETAILS PANEL 05-->
            <asp:Panel ID="DetailsPanel05" ClientIDMode="Static" runat="server" Visible="false">
            </asp:Panel>
            <!--DETAILS PANEL 06-->
            <asp:Panel ID="DetailsPanel06" ClientIDMode="Static" runat="server" Visible="false">
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelContractOutCome" runat="server" Text="Contract OutCome" CssClass="st-labeltext level1"
                            AssociatedControlID="CheckBoxListContractOutCome"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListContractOutCome" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelContractObligation" runat="server" Text="Contract Obligation"
                            CssClass="st-labeltext level1" 
                            AssociatedControlID="CheckBoxListContractObligation"></asp:Label><div
                                class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CheckBoxListContractObligation" runat="server" DataTextField="ItemName"
                                    DataValueField="Id">
                                </asp:CheckBoxList>
                            </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label11" runat="server" Text="Paticipation" CssClass="st-labeltext level1"
                            AssociatedControlID="DropDownListPaticipation"></asp:Label><asp:DropDownList 
                            ID="DropDownListPaticipation" runat="server" CssClass="st-labeltext" 
                            Width="210px" DataTextField="Participation" DataValueField="Participation"></asp:DropDownList>
                    </div>
                    <div class="half last">
                        
                    </div>
                    <div class="clear">
                    </div>  
                </div>
            </asp:Panel>
        </div>
    </div>
    <%--CONTACT LOOKUP--%>
    <wuc:ContactLookupPopup ID="ContactLookupPopup" runat="server" TextBoxResultId="TextBoxLeadContact"
        HiddenFieldResultId="HiddenFieldContactId" MaximumRows="5" />
</asp:Content>
